package api.apiservice.apiopenplat.common.unifyDataForm;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultVo {

    SUCCESS(20000,"请求成功！"),
    ERROR_IDNOTEXIST(400,"用户ID不存在，请前往注册页面进行注册！"),
    ERROR_PASSWORD(880,"用户密码错误"),
    ERROR_APIONLINED(411,"此API已经发布"),
    ERROR_UNKOWN(505,"未知原因错误"),
    ERROR_URI(100010,"URI 安全检测未过，请检查后重新上传！");

    private final Integer code;

    private final String message;

    public Integer code(){
        return this.code;
    }

    public String message(){
        return this.message;
    }


}
